package com.passwordmanager.activities;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.j256.ormlite.android.apptools.OrmLiteBaseActivity;
import com.passwordmanager.manager.DatabaseHelper;

public class Login extends OrmLiteBaseActivity<DatabaseHelper>{
	Button validButton;
	EditText editTextLogin;
	
	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		validButton = (Button)findViewById(R.id.buttonValidLogin);
		editTextLogin = (EditText)findViewById(R.id.editTextLogin);
		
		validButton.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				if (("").equals(editTextLogin.getText().toString())) {
					Toast.makeText(Login.this, getString(R.string.passwordRequired), Toast.LENGTH_LONG);
					return;
				}
				
			}
		});
	}
	
	protected boolean testPassword() {
		return null != null;
	}
}
